package com.HMI;

import java.awt.Font;

import javax.swing.JLabel;

import com.Resources.CustomColor;

@SuppressWarnings("serial")
public class PanelText extends JLabel {

	public PanelText(String title, int x, int y, int width, int height, int horizAlign, int vertAlign) {
		this.setText(title);
		this.setBounds(x,y,width,height);
		this.setFont(new Font("DejaVu Sans", Font.PLAIN, 27));
		this.setForeground(CustomColor.NAVY_BLUE);
		this.setOpaque(false);
		this.setHorizontalAlignment(horizAlign);
		this.setVerticalAlignment(vertAlign);
	}
	
}
